import { playMode } from '@/common/js/config';
import { loadSearch, loadPlay, loadFavorite } from '@/common/js/cache';

const state = {
	singer: {},
	lyric: '',
	playing: false,
	fullScreen: false,
	playlist: [],
	sequenceList: [],
	mode: playMode.sequence,
	currentIndex: -1,
	currentSong: {},
	disc: {},
	topList: {},
	searchHistory: loadSearch(),
	playHistory: loadPlay(),
	favoriteList: loadFavorite()
}

export default state;
